package com.qiyu.constant;

import lombok.Getter;

/**
 * 度假攻略下的二级菜单 枚举
 */
@Getter
public enum SecondLevelStrategyEnum {
    
    note(1, 1L, "攻略游记", false),
    traffic(2, 2L, "交通出行", false),
    service(3, 3L, "公共服务", true),
    surrounding(4, 4L, "周边旅游", true),
    history(5, 5L, "人文历史", false),
    other(6, 0L, "其他菜单", false);
    
    /**
     * 标识
     */
    private Integer code;
    
    /**
     * 对应表second_level_menu的id
     */
    private Long dbId;
    
    /**
     * 菜单中文名称
     */
    private String nameCn;
    
    /**
     * 是否支持子类型
     */
    private Boolean supportSubType;
    
    
    SecondLevelStrategyEnum(Integer code, Long dbId, String nameCn, Boolean supportSubType) {
        this.code = code;
        this.dbId = dbId;
        this.nameCn = nameCn;
        this.supportSubType = supportSubType;
    }
    
    /**
     * 获取菜单的key
     */
    public String getMenuKey() {
        return this.name().toLowerCase();
    }
    
    /*public FirstLevelMenuEnum getMenuDetail() {
        return null;
    }*/
    
    
}
